home *** CD-ROM | disk | FTP | other *** search
/ BMUG Revelations / BMUG Revelations.toast / Programming / Programming Languages / Harvest C / MPW Int & Lib / Interfaces / Retrace.h < prev    next >
Text File  |  1991-04-17  |  1KB  |  66 lines

  1. /************************************************************
  2.  
  3. Created: Sunday, January 6, 1991 at 9:51 PM
  4.     Retrace.h
  5.     C Interface to the Macintosh Libraries
  6.  
  7.  
  8.         Copyright Apple Computer, Inc.    1985-1990
  9.         All rights reserved
  10.  
  11. ************************************************************/
  12.  
  13.  
  14. #ifndef __RETRACE__
  15. #define __RETRACE__
  16.  
  17. #ifndef __TYPES__
  18. #include <Types.h>
  19. #endif
  20.  
  21. #ifndef __OSUTILS__
  22. #include <OSUtils.h>
  23. #endif
  24.  
  25.  
  26. typedef pascal void (*VBLProcPtr)(void);
  27.  
  28. struct VBLTask {
  29.     QElemPtr qLink;
  30.     short qType;
  31.     VBLProcPtr vblAddr;
  32.     short vblCount;
  33.     short vblPhase;
  34. };
  35.  
  36. typedef struct VBLTask VBLTask;
  37.  
  38.  
  39. #ifdef __cplusplus
  40. extern "C" {
  41. #endif
  42. #define GetVBLQHdr() ((QHdrPtr) 0x0160)
  43. #pragma parameter __D0 SlotVInstall(__A0,__D0)
  44. pascal OSErr SlotVInstall(QElemPtr vblBlockPtr,short theSlot)
  45.     = 0xA06F; 
  46. #pragma parameter __D0 SlotVRemove(__A0,__D0)
  47. pascal OSErr SlotVRemove(QElemPtr vblBlockPtr,short theSlot)
  48.     = 0xA070; 
  49. #pragma parameter __D0 AttachVBL(__D0)
  50. pascal OSErr AttachVBL(short theSlot)
  51.     = 0xA071; 
  52. #pragma parameter __D0 DoVBLTask(__D0)
  53. pascal OSErr DoVBLTask(short theSlot)
  54.     = 0xA072; 
  55. #pragma parameter __D0 VInstall(__A0)
  56. pascal OSErr VInstall(QElemPtr vblTaskPtr)
  57.     = 0xA033; 
  58. #pragma parameter __D0 VRemove(__A0)
  59. pascal OSErr VRemove(QElemPtr vblTaskPtr)
  60.     = 0xA034; 
  61. #ifdef __cplusplus
  62. }
  63. #endif
  64.  
  65. #endif
  66.